package com.four.controller;

import com.four.pojo.*;
import com.four.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author version v1.0
 * @ClassName：
 * @Description：
 **/
@Controller
public class ShopController {
    @Autowired
    @Qualifier("shopService")
    private IShopService iShopService;

    @RequestMapping("/findAllShop")
    public String findAllShop(Model model){
        List<Shops> list=iShopService.findAllShop();
        model.addAttribute("list",list);
        return "bosssystem/today_storedata.jsp";
    }
}
